import React from "react";
import {connect} from "dva";
import PropTypes from "prop-types";
import {Breadcrumb, Layout} from "antd";
import {routerRedux} from "dva/router";

// import styles from './User.css'

function Role(args) {

  const {Content} = Layout
  const {Item} = Breadcrumb

  const {dispatch, location} = args

  const {pathname, query} = location
  const {page, size} = query


  return (
    <div>
      <Breadcrumb style={{margin: '12px 0'}}>
        <Item>Home</Item>
        <Item>List</Item>
        <Item>App</Item>
      </Breadcrumb>
      <Content style={{background: '#fff', padding: 24, margin: 0, minHeight: 280}}>
        角色管理
      </Content>
    </div>
  );
}

Role.propTypes = {
  role: PropTypes.object
}

export default connect(({role}) => ({state: role}))(Role);
